package com.anuyun.ms.base.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;


/**
 * 公共基础实体类
 * @author yufeng
 *
 */
public class BaseEntity{

	
	/**
	 * 公共主键
	 */
	@TableField(fill = FieldFill.INSERT)
	private String id;
	
	/**
	 * 逻辑删除标记 0未删除  1已删除
	 */
	@TableLogic(value = "0" , delval="1")
	@TableField(fill = FieldFill.INSERT)
	private Integer deleted;
	
	/**
	 * 乐观锁版本号
	 */
	@Version
	@TableField(fill = FieldFill.INSERT)
	private Integer version;
	
	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	private String creator;
	
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	
	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private String modifier;
	
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime modifyTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	
	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	
}
